package com.dreamwhale.machinery.user.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户账单表
 * </p>
 *
 * @author Author
 * @since 2020-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yx_user_bill")
public class YxUserBill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户账单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户uid
     */
    private Integer uid;

    /**
     * 关联id
     */
    private String linkId;

    /**
     * 0 = 支出 1 = 获得
     */
    private Integer pm;

    /**
     * 账单标题
     */
    private String title;

    /**
     * 明细种类
     */
    private String category;

    /**
     * 明细类型
     */
    private String billType;

    /**
     * 明细数字
     */
    private BigDecimal billNumber;

    /**
     * 剩余
     */
    private BigDecimal balance;

    /**
     * 备注
     */
    private String mark;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 0 = 带确定 1 = 有效 -1 = 无效
     */
    private Boolean billStatus;


}
